package cn.tedu.egmybatis4.mapper;

import cn.tedu.egmybatis4.pojo.entity.Product;
import cn.tedu.egmybatis4.pojo.vo.ProductVO1;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
    //1.
    void insertProduct(Product product);
    //2.
    ProductVO1 selectSingleProduct(int id);
    //3.
    int delectById(Integer id);
    //4.
    int delectByIds(List<Integer> list);
    //5.
    int dynamicUpdate(Product product);
    //6.
    int selectCount();
}
